package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.sql.Types;
import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_jieshi_chose_event", autoSave = true)
public class LogJieShiChoseEvent {

    @FieldTypeAnnotation(desc = "活动Id", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "街市等级")
    private int level;
    @FieldTypeAnnotation(desc = "事件类型")
    private int eventType;
    @FieldTypeAnnotation(desc = "事件id")
    private int eventId;
    @FieldTypeAnnotation(desc = "触发圈数")
    private int touchRound;
    @FieldTypeAnnotation(desc = "完成圈数")
    private int finishRound;
    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogJieShiChoseEvent(int activityId, long userId, int level, int eventType, int eventId, int touchRound, int finishRound) {
        this.activityId = activityId;
        this.userId = userId;
        this.level = level;
        this.eventType = eventType;
        this.eventId = eventId;
        this.touchRound = touchRound;
        this.finishRound = finishRound;
        this.time = new Date();
    }
}
